package clear.services;


import start.winstone.WinStoneManager;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

public class ClearDataService extends Service {

	public static ClearDataService instance;  
    
    public ClearDataService() {
    	super();
    	instance = this;
    }
 
	
	public void onCreate() {
	    long start = System.currentTimeMillis();
		WinStoneManager wm = new WinStoneManager();
	    String localPath = "/WEB-INF/web.xml";
		wm.start(localPath);
		long end = System.currentTimeMillis();
        Toast.makeText(this, "ClearDS has started..." + (end - start)+" ms", Toast.LENGTH_SHORT).show();
	} 
	
	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}

}

// Performance
// Refactoring : naming, packaging: separate java project and flex project.
//DONE Resolve acces to activity from DEcide with pointer to activity - leave to developer
//TEST
//------ ANNOUNCEMENT
// Plugin role: CREATE (UPDATE - risk)  Android-project and Flex Project with extra jars.
 